package com.treasure.web.command.request;

import java.io.Serializable;

/**
 * @author sunhongmin
 * @date 2023/10/14 23:37
 * @description
 */
public class ImageTriggerRequest implements Serializable {
    /**
     * push_data : {"digest":"sha256:7ec00b11edffaa0673bdccf94f70e913582853410ab8ea5fbc44c5771e000bd2","pushed_at":"2023-10-14 23:35:37","tag":"5038a0a.20231014.2334.59"}
     * repository : {"date_created":"2023-09-05 19:21:41","name":"ai-treasure-chest","namespace":"hongmin_image_registory","region":"cn-hangzhou","repo_authentication_type":"NO_CERTIFIED","repo_full_name":"hongmin_image_registory/ai-treasure-chest","repo_origin_type":"NO_CERTIFIED","repo_type":"PUBLIC"}
     */

    private PushDataBean push_data;
    private RepositoryBean repository;

    public PushDataBean getPush_data() {
        return push_data;
    }

    public void setPush_data(PushDataBean push_data) {
        this.push_data = push_data;
    }

    public RepositoryBean getRepository() {
        return repository;
    }

    public void setRepository(RepositoryBean repository) {
        this.repository = repository;
    }

    public static class PushDataBean {
        /**
         * digest : sha256:7ec00b11edffaa0673bdccf94f70e913582853410ab8ea5fbc44c5771e000bd2
         * pushed_at : 2023-10-14 23:35:37
         * tag : 5038a0a.20231014.2334.59
         */

        private String digest;
        private String pushed_at;
        private String tag;

        public String getDigest() {
            return digest;
        }

        public void setDigest(String digest) {
            this.digest = digest;
        }

        public String getPushed_at() {
            return pushed_at;
        }

        public void setPushed_at(String pushed_at) {
            this.pushed_at = pushed_at;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }
    }

    public static class RepositoryBean {
        /**
         * date_created : 2023-09-05 19:21:41
         * name : ai-treasure-chest
         * namespace : hongmin_image_registory
         * region : cn-hangzhou
         * repo_authentication_type : NO_CERTIFIED
         * repo_full_name : hongmin_image_registory/ai-treasure-chest
         * repo_origin_type : NO_CERTIFIED
         * repo_type : PUBLIC
         */

        private String date_created;
        private String name;
        private String namespace;
        private String region;
        private String repo_authentication_type;
        private String repo_full_name;
        private String repo_origin_type;
        private String repo_type;

        public String getDate_created() {
            return date_created;
        }

        public void setDate_created(String date_created) {
            this.date_created = date_created;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getNamespace() {
            return namespace;
        }

        public void setNamespace(String namespace) {
            this.namespace = namespace;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }

        public String getRepo_authentication_type() {
            return repo_authentication_type;
        }

        public void setRepo_authentication_type(String repo_authentication_type) {
            this.repo_authentication_type = repo_authentication_type;
        }

        public String getRepo_full_name() {
            return repo_full_name;
        }

        public void setRepo_full_name(String repo_full_name) {
            this.repo_full_name = repo_full_name;
        }

        public String getRepo_origin_type() {
            return repo_origin_type;
        }

        public void setRepo_origin_type(String repo_origin_type) {
            this.repo_origin_type = repo_origin_type;
        }

        public String getRepo_type() {
            return repo_type;
        }

        public void setRepo_type(String repo_type) {
            this.repo_type = repo_type;
        }
    }
}
